#include <bits/stdc++.h>
#define int long long
using namespace std;

stack < int > st;
priority_queue < int > q;

signed main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int n, maxn = 0;
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        int a;
        cin >> a;
        q.push(a);
    }
    int a = q.top(), jsq = 1;
    q.pop();
    while(!q.empty())
    {
        if (q.top() == a)
        {
            jsq++;
            q.pop();
        }
        else
        {
            maxn = max(maxn, jsq);
            jsq = 1;
            a = q.top();
            q.pop();
        }
    }
    maxn = max(maxn, jsq);
    cout << maxn << "\n";
    return 0;
}